<?php 
include('connection.php');
if(isset($_GET["q"]))
{
	
$q=$_GET["q"];

$sql_course="SELECT * FROM `course` WHERE course_id = ".$q;
		$result_course = mysql_query($sql_course);
		while($row_course = mysql_fetch_array($result_course))
{
	echo $row_course['course_fees'];
}
}

else
{	$p=$_GET["p"];
if($p==1)
{
$sql_hostel="SELECT * FROM `hostel` ";
		$result_hostel = mysql_query($sql_hostel);
		while($row_hostel = mysql_fetch_array($result_hostel))
{
	echo $row_hostel['hostel_fees'];
}	}

}
?>
        
